import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
import index from '../views/index.vue'
import notice from "../views/notice.vue"
import addMoney from "../views/addMoney.vue"
import addMoneyRecord from "../views/addMoneyRecord.vue"
import withdrawRecord from "../views/withdrawRecord.vue"
import moneyRecord from "../views/moneyRecord.vue"
import ticketRecord from "../views/ticketRecord.vue"
import withdraw from "../views/withdraw.vue"
import caipiao from '../views/caipiao.vue'
import walletTransfer from '../views/walletTransfer.vue'
import team from "../views/team.vue"
import daySettle from "../views/daySettle.vue"
import bankList from "../views/bankList.vue"
import repeatedBet from "../views/repeatedBet.vue"
import home from '../views/children/home.vue'
import games from '../views/children/games.vue'
import regist from '../views/children/regist.vue'
import center from '../views/children/center.vue'
import xyft from "../views/caipiao/xyft.vue"
import bjsc from "../views/caipiao/bjsc.vue"
import jsft from "../views/caipiao/jsft.vue"
import jssc from "../views/caipiao/jssc.vue"
import hn5fc from "../views/caipiao/hn5fc.vue"
import txffc from "../views/caipiao/txffc.vue"

Vue.use(VueRouter)

const routes = [{
		path: '/',
		component: index,
		redirect: '/home', //首页
		children: [
			{	//首页
				path: '/home',
				component: home,
				name: 'home',
				meta:{
					title:"纵享娱乐"
				}
			},
			{
				path: '/center',
				component: center,
				name: 'center',
				meta:{
					title:"个人中心"
				}
			},
			{
				path: '/games',
				component: games,
				name: 'games',
				meta:{
					title:"游戏大厅"
				}
			},
			{
				path: '/regist',
				component: regist,
				name: 'regist',
				meta:{
					title:"邀请好友"
				}
			}
		]
	},
	{
		path: '/login',
		name: 'login',
		component: login
	},
	{
		path: '/notice',
		name: 'notice',
		component: notice,
		meta:{
			title:"公告列表"
		}
	},
	{
		path: '/addMoney',
		name: 'addMoney',
		component: addMoney,
		meta:{
			title:"充值"
		}
	},
	{
		path: '/addMoneyRecord',
		name: 'addMoneyRecord',
		component: addMoneyRecord,
		meta:{
			title:"充值订单"
		}
	},
	{
		path: '/withdraw',
		name: 'withdraw',
		component: withdraw,
		meta:{
			title:"提现"
		}
	},
	{
		path: '/withdrawRecord',
		name: 'withdrawRecord',
		component: withdrawRecord,
		meta:{
			title:"提现记录"
		}
	},
	{
		path: '/moneyRecord',
		name: 'moneyRecord',
		component: moneyRecord,
		meta:{
			title:"账变记录"
		}
	},
	{
		path: '/ticketRecord',
		name: 'ticketRecord',
		component: ticketRecord,
		meta:{
			title:"投注记录"
		}
	},
	{
		path: '/walletTransfer',
		name: 'walletTransfer',
		component: walletTransfer,
		meta:{
			title:"钱包互转"
		}
	},
	{
		path: '/team',
		name: 'team',
		component: team,
		meta:{
			title:"我的团队"
		}
	},
	{
		path: '/daySettle',
		name: 'daySettle',
		component: daySettle,
		meta:{
			title:"当日结算"
		}
	},
	{
		path: '/bankList',
		name: 'bankList',
		component: bankList,
		meta:{
			title:"银行卡号"
		}
	},
	{
		path: '/repeatedBet',
		name: 'repeatedBet',
		component: repeatedBet,
		meta:{
			title:"复投金额"
		}
	},
	{
		path: '/caipiao',
		name: 'caipiao',
		component: caipiao,
		children: [
			{	//幸运飞艇
				path: '/xyft',
				component: xyft,
				name: 'xyft',
			},{	//北京赛车
				path: '/bjsc',
				component: bjsc,
				name: 'bjsc',
			},{	//极速飞艇
				path: '/jsft',
				component: jsft,
				name: 'jsft',
			},{	//极速赛车
				path: '/jssc',
				component: jssc,
				name: 'jssc',
			},
			{	//腾讯分分彩
				path: '/txffc',
				component: txffc,
				name: 'txffc',
			},
			{	//河内5分彩
				path: '/hn5fc',
				component: hn5fc,
				name: 'hn5fc',
			}
		]
	},
	{	//404重定向 
		path: '*',
		redirect: '/',
	}
]

const router = new VueRouter({
	//mode: "history",
	routes
})

export default router
